/*
 * @Author: HeAo
 * @Date: 2021-09-26 16:29:14
 * @LastEditTime: 2021-09-26 16:32:27
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2105\3-1-ES6\day02\7-对象API.js
 * 别乱动！
 */
let obj = {
  name: 'zhangsan',
  age: 12,
  gender: 'male'
}
let keys = Object.keys(obj)
let values = Object.values(obj)
let entries = Object.entries(obj)
// console.log(keys, values, entries);

entries.forEach((item, index) => {
  console.log(item[0], item[1]);
})